package com.pai4j.user.repository.dao;

import com.pai4j.user.repository.entity.GroupMemberSettingEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface IGroupMemberSettingDAO extends JpaSpecificationExecutor<GroupMemberSettingEntity>, JpaRepository<GroupMemberSettingEntity, Long> {

    GroupMemberSettingEntity findByGroupPaiIdAndUserAccount(String groupPaiId, String userAccount);

    boolean existsByGroupPaiIdAndUserAccount(String groupPaiId, String userAccount);
}
